// *Author：jxx
// *Contact：283591387@qq.com
// *代码由框架生成,任何更改都可能导致被代码生成器覆盖
export default function(){
    const table = {
        key: 'Id',
        footer: "Foots",
        cnName: '工序设置',
        name: 'operationmodel',
        url: "/operationmodel/",
        sortName: "Id"
    };
    const tableName = table.name;
    const tableCNName = table.cnName;
    const newTabEdit = false;
    const key = table.key;
    const editFormFields = {"OperationCode":"","OperationName":"","IsYes":"","OperationSpeak":"","Speak":""};
    const editFormOptions = [[{"title":"工序编码","required":true,"field":"OperationCode","type":"text"},
                               {"title":"工序名称","required":true,"field":"OperationName","type":"text"},
                               {"dataKey":"状态01","data":[],"title":"是否启用","required":true,"field":"IsYes","type":"select"}],
                              [{"title":"工序说明","required":true,"field":"OperationSpeak","colSize":12,"type":"textarea"}],
                              [{"title":"备注","required":true,"field":"Speak","colSize":12,"type":"textarea"}]];
    const searchFormFields = {"OperationCode":"","OperationName":"","IsYes":""};
    const searchFormOptions = [[{"title":"工序编码","field":"OperationCode","type":"like"},{"title":"工序名称","field":"OperationName","type":"like"},{"dataKey":"状态01","data":[],"title":"是否启用","field":"IsYes","type":"select"}]];
    const columns = [{field:'Id',title:'主键Id',type:'int',width:110,hidden:true,readonly:true,require:true,align:'left'},
                       {field:'OperationCode',title:'工序编码',type:'string',width:110,require:true,align:'left'},
                       {field:'OperationName',title:'工序名称',type:'string',width:110,require:true,align:'left'},
                       {field:'IsYes',title:'是否启用',type:'int',bind:{ key:'状态01',data:[]},width:110,require:true,align:'left'},
                       {field:'OperationSpeak',title:'工序说明',type:'string',width:220,require:true,align:'left'},
                       {field:'Speak',title:'备注',type:'string',width:220,require:true,align:'left'}];
    const detail ={columns:[]};
    const details = [];

    return {
        table,
        key,
        tableName,
        tableCNName,
        newTabEdit,
        editFormFields,
        editFormOptions,
        searchFormFields,
        searchFormOptions,
        columns,
        detail,
        details
    };
}